import { setupElementPlugin } from './element';
import { setupMockPlugin } from './mock';
import vue from '@vitejs/plugin-vue';
import { Plugin } from 'vite';

export default function setupPlugins(isBuild: boolean) {
  const plugins: Plugin[] = [vue()];
  plugins.push(setupMockPlugin(isBuild));
  plugins.push(...setupElementPlugin());
  return plugins;
}
